class user:
    name = None
    age = None


    def getInf(self):
        print(f"我叫%s，今年%s岁" % (self.name, self.age))


u = user()
u.name = "syy"
u.age = 22
u.getInf()
